package my.lotu.bean;

public class CollectData {
	private int dayId;
	private double Money;
	private double Cost;
	private int Day;
	private int Percentage;
	public double getMoney() {
		return Money;
	}
	public void setMoney(double money) {
		Money = money;
	}
	public double getCost() {
		return Cost;
	}
	public void setCost(double cost) {
		Cost = cost;
	}
	public int getDay() {
		return Day;
	}
	public void setDay(int day) {
		Day = day;
	}
	public int getPercentage() {
		if(Money>0){
			Percentage=(int)(Cost/Money*100);
		}else{
			Percentage=0;
		}
		return Percentage;
	}
	public void setPercentage(int percentage) {
		Percentage = percentage;
	}
	public int getDayId() {
		return dayId;
	}
	public void setDayId(int dayId) {
		this.dayId = dayId;
	}
}
